import Vue from "vue";
import Router from "vue-router";
import home from "./views/car/index.vue";

Vue.use(Router);
var routes = [
	{
		path: '/',
		redirect: '/index',
		component: home,
		children:[{
			path: '/index',
			component: (resolve) => require(['./views/car/index.vue'], resolve),
			name: 'index',
		}]
	},
	// {
	// 	path: '/login',
	// 	name: "login",
	// 	component: (resolve) => require(['./views/car/login.vue'], resolve),
	// },
];


export default new Router({
	routes,
});